<?php
/**
 * Dcolors,The Community Application for Web
 *
 * Template class
 *
 * Not free software
 * @author     chopin xiao <x@sunsne.com>
 * @copyright  2009 The Dcolors Group
 * @version    SVN: $Id: Template.php 6 2009-01-11 04:10:08Z chopins.xiao $
 **/
class Template
{
	public $params = array();
	public function setparams($name,$value)
	{
		$this->params[$name] = $value;
	}
	public function display($tplname,$admin=false)
	{
		foreach ($this->params as $var => $value) {
			$$var = $value;
		}
		include_once('../Themes/Customer/'.$tplname.'tpl.php');
	}
}